package com.yanqu.road.entity.player;

import com.yanqu.road.entity.DataObject;

import java.util.Objects;

public class UserVehicleSkill extends DataObject {

	private long userId;

	private String vehicleUid;

	private int skillPos;

	private int skillType;

	private int value;

	private int skillModifyTimes;

	private int randomSkillType;

	private int randomValue;

	//是否失效
	private boolean invalid;

	public long getUserId() {
		return userId;
	}

	public void setUserId(long userId) {
		if(this.userId != userId) {
			this.userId = userId;
			setUpdateOption();
		}
	}

	public String getVehicleUid() {
		return vehicleUid;
	}

	public void setVehicleUid(String vehicleUid) {
		if(!Objects.equals(this.vehicleUid, vehicleUid)) {
			this.vehicleUid = vehicleUid;
			setUpdateOption();
		}
	}

	public int getSkillPos() {
		return skillPos;
	}

	public void setSkillPos(int skillPos) {
		if(this.skillPos != skillPos) {
			this.skillPos = skillPos;
			setUpdateOption();
		}
	}

	public int getSkillType() {
		return skillType;
	}

	public void setSkillType(int skillType) {
		if(this.skillType != skillType) {
			this.skillType = skillType;
			setUpdateOption();
		}
	}

	public int getValue() {
		return value;
	}

	public void setValue(int value) {
		if(this.value != value) {
			this.value = value;
			setUpdateOption();
		}
	}

	public int getSkillModifyTimes() {
		return skillModifyTimes;
	}

	public void setSkillModifyTimes(int skillModifyTimes) {
		if(this.skillModifyTimes != skillModifyTimes) {
			this.skillModifyTimes = skillModifyTimes;
			setUpdateOption();
		}
	}

	public int getRandomSkillType() {
		return randomSkillType;
	}

	public void setRandomSkillType(int randomSkillType) {
		if(this.randomSkillType != randomSkillType) {
			this.randomSkillType = randomSkillType;
			setUpdateOption();
		}
	}

	public int getRandomValue() {
		return randomValue;
	}

	public void setRandomValue(int randomValue) {
		if(this.randomValue != randomValue) {
			this.randomValue = randomValue;
			setUpdateOption();
		}
	}

	public boolean isInvalid() {
		return invalid;
	}

	public void setInvalid(boolean invalid) {
		if(this.invalid != invalid) {
			this.invalid = invalid;
			setUpdateOption();
		}
	}
}
